package com.huaxin.common.Entity;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * @author songxf
 * @date 2018/6/8
 * @Desc 第一层
 * Copyright HUAXIN DATA. All rights reserved.
 */
public class HxMaintenanceFirstDTO extends AbstractExpandableItem<HxMaintenanceFirstDTO> implements MultiItemEntity {
    public static final int orgAreaTierOne = 1;
    public static final int orgAreaTierTwo = 2;


    private int level;
    private int itemType;


    private String                      id;
    private String                      name;
    private List<HxMaintenanceFirstDTO> children;

    private boolean isCheck;

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public int getLevel() {
        return level;
    }


    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String text) {
        this.name = text;
    }


    public List<HxMaintenanceFirstDTO> getChildren() {
        return children;
    }

    public void setChildren(List<HxMaintenanceFirstDTO> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "HxMaintenanceFirstDTO{" +
                "level=" + level +
                ", itemType=" + itemType +
                ", id='" + id + '\'' +
                ", text='" + name + '\'' +
                ", children=" + children +
                '}';
    }
}
